package com.yyf.springboot2.mapper;

import com.yyf.springboot2.entity.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */

public interface TUserMapper extends BaseMapper<TUser> {

    int updatePdAnfSalt(@Param(value="password")String password,
                        @Param(value="salt") String salt,
                        @Param(value="userId")Integer userId);

    Integer updateMoneyById(Map <String, Object> map);

    Integer changeMoneyScoreById(Map<String,Object> map);

    Integer updateMoneyByIdAdd(Map<String,Object> map);
}